Fix Bug: get_geo_submit_flag result error

Brightcells 8 anos atrás
pai
commit
58845b4fd7
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      group/tourguidegroupuser_views.py

+ 2 - 2
group/tourguidegroupuser_views.py

@@ -221,8 +221,8 @@ def tgu_group_user_update_api(request):
221 221
 def get_geo_submit_flag(geo_at, gather_at):
222 222
     """ 是否上传过位置字段(即是否失联) """
223 223
     if geo_at and gather_at:
224
-        geo_at = tc.string_to_utc_datetime(geo_at, format='%Y-%m-%dT%H:%M:%SZ')
225
-        gather_at = tc.string_to_utc_datetime(gather_at, format='%Y-%m-%dT%H:%M:%SZ')
224
+        geo_at = tc.utc_string_to_utc_datetime(geo_at, format='%Y-%m-%dT%H:%M:%SZ')
225
+        gather_at = tc.utc_string_to_utc_datetime(gather_at, format='%Y-%m-%dT%H:%M:%SZ')
226 226
         current_dt = tc.utc_datetime()
227 227
         delta_seconds = tc.total_seconds(gather_at - current_dt)
228 228
         # 距离集合时间超过30分钟是5分钟,15分钟到30分钟是3分钟,15分钟以内是1分钟